{
  "variables": {"module_path%": ""},
  "targets": [
    {
      "target_name": "mini_sqlite3_addon",
      "cflags!": [
        "-fno-exceptions",
      ],
      "cflags_cc!": ["-fno-exceptions", "-finput-charset=UTF-8", '-std=c++11'],
      "defines": [
        "NAPI_DISABLE_CPP_EXCEPTIONS",
        "SQLITE_________________________________________BELOW"
        "NDEBUG",
        "HAVE_INT16_T=1",
        "HAVE_INT32_T=1",
        "HAVE_INT8_T=1",
        "HAVE_STDINT_H=1",
        "HAVE_UINT16_T=1",
        "HAVE_UINT32_T=1",
        "HAVE_UINT8_T=1",
        "HAVE_USLEEP=1",
        "SQLITE_DEFAULT_CACHE_SIZE=-16000",
        "SQLITE_DEFAULT_FOREIGN_KEYS=1",
        "SQLITE_DEFAULT_MEMSTATUS=0",
        "SQLITE_DEFAULT_WAL_SYNCHRONOUS=1",
        "SQLITE_DQS=0",
        "SQLITE_OMIT_LOAD_EXTENSION",
        "SQLITE_ENABLE_COLUMN_METADATA",
        "SQLITE_ENABLE_DBSTAT_VTAB",
        "SQLITE_ENABLE_DESERIALIZE",
        "SQLITE_ENABLE_FTS3",
        "SQLITE_ENABLE_FTS3_PARENTHESIS",
        "SQLITE_ENABLE_FTS4",
        "SQLITE_ENABLE_FTS5",
        "SQLITE_ENABLE_GEOPOLY",
        "SQLITE_ENABLE_JSON1",
        "SQLITE_ENABLE_MATH_FUNCTIONS",
        "SQLITE_ENABLE_RTREE",
        "SQLITE_ENABLE_STAT4",
        "SQLITE_ENABLE_UPDATE_DELETE_LIMIT",
        "SQLITE_LIKE_DOESNT_MATCH_BLOBS",
        "SQLITE_OMIT_DEPRECATED",
        "SQLITE_OMIT_PROGRESS_CALLBACK",
        "SQLITE_OMIT_SHARED_CACHE",
        "SQLITE_OMIT_TCL_VARIABLE",
        "SQLITE_SOUNDEX",
        "SQLITE_THREADSAFE=2",
        "SQLITE_TRACE_SIZE_LIMIT=32",
        "SQLITE_USE_URI=0",
      ],
      "sources": [
        "src/logger.cpp",
        "src/sqlite3_mini_client.cpp",
        "src/sqlite3_mini_exports.cpp",
        "src/sqlite3_mini_stmt.cpp",
        "src/sqlite3/sqlite3.c",
      ],
      "include_dirs": [
        "<!@(node -p \"require('node-addon-api').include\")",
      ],
      "conditions": [
        [
          'OS == "linux"',
          {
            "include_dirs": [
              "<!@(node -p \"require('node-addon-api').include\")",
              "<!@(node -p \"a=require('process').execPath;require('path').join(a, '../../include/node/')\")",
              "./src/",
            ],
            "libraries": [
            ],
          },
          'OS == "mac"',
          {
            "include_dirs": [
              "<!@(node -p \"require('node-addon-api').include\")",
              "<!@(node -p \"a=require('process').execPath;require('path').join(a, '../../include/node/')\")",
              "./src/",
            ],
            "libraries": [
            ],
          },
          'OS == "win"',
          {
            "include_dirs": [
              "./src/",
            ],
            "libraries": [
            ],
            'msvs_settings': {
              'VCCLCompilerTool': {
                'runtimeLibrary': 0,
              },
              "VCCLCompilerTool": {
                "AdditionalOptions": [
                  "/utf-8"
                ]
              },
            }
          }
        ]
      ]
    }
  ]
}